package io.renren.modules.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.store.dao.TStoreReasonDao;
import io.renren.modules.store.entity.TStoreReasonEntity;
import io.renren.modules.store.service.TStoreReasonService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("tStoreReasonService")
public class TStoreReasonServiceImpl extends ServiceImpl<TStoreReasonDao, TStoreReasonEntity> implements TStoreReasonService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TStoreReasonEntity> page = this.page(
                new Query<TStoreReasonEntity>().getPage(params)
        );

        return new PageUtils(page);
    }

}